<style type="text/css">
.container {
    background-color: yellow;
    /* border: 5px solid darkred;*/
    /*padding: 20px;*/
    margin: 30px;
}
.float-left-box
{
    background-color: lightgreen;
    height: 100px;
    width: 100px;
    border: 5px solid darkgreen;
    padding: 20px;
    margin: 40px;
    float: left;
}
</style>
<body><div class="float-left-box"></div><div class="float-left-box"></div></body>